package com.example.cola.infrastructure.repository.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用户持久化对象
 * 
 * @author 资深开发专家
 * @version 1.0
 */
@Data
@TableName("user")
public class UserPO {
    
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    
    private String email;
    
    private String phoneNumber;
    
    private String name;
    
    private String password;
    
    private Integer status;
    
    private Boolean emailVerified;
    
    private Boolean phoneVerified;
    
    private LocalDateTime lastLoginTime;
    
    private String lastLoginIp;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedTime;
    
    @TableLogic
    private Integer deleted;
}
